package org.tech4j.edi.api.response;

import org.tech4j.common.core.enums.ErrorCode;

/**
 * @program: tech4j
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/7 16:06
 **/
public enum ResponseCode implements ErrorCode {

    SUCCESS(0, "成功"),
    NOT_FOUND(404, "未找到记录"),

    FAILED(500, "失败"),
    ;

    private final Integer code;
    private final String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
